<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="../../css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../js/api.js"></script>
<script type="text/javascript" src="../../js/axios.js"></script>
<script type="text/javascript" src="../../js/jquery.js"></script>
</head>

<body>
<div class="place"> <span>位置：</span>
  <ul class="placeul">
    <li>采购管理</li>
    <li>厂商管理</li>
    <li>厂商详情</li>
  </ul>
</div>
<div class="formbody">
  <div class="formtitle"><span>厂商信息</span></div>
  <ul class="forminfo">
    <li>
      <label>厂商名称</label>
      <cite id="firmName">阿里巴巴</cite>
    </li>
    <li>
      <label>负责人</label>
      <cite id="firmFounder">马云</cite>
    </li>
    <li>
      <label>联系方式</label>
      <cite id="firmTel">17370899727</cite>
    </li>
    <li>
      <label>联系地址</label>
      <cite id="firmAddress">江苏南京苏铺路180号泸州花园7栋3单元1801室</cite>
    </li>
    <li>
      <label>所属区域</label>
      <cite id="area">江苏省南京市</cite>
    </li>
    <li>
      <label>描述</label>
      <cite id="firmContent">阿里巴巴上市公司</cite>
    </li>
    <li>
      <label>状态</label>
      <cite id="status">可用</cite>
    </li>
    <li>
      <label>创建人</label>
      <cite id="uName">曹操</cite>
    </li>
    <li>
      <label>创建时间</label>
      <cite id="createTime">2017-11-18 15:36:10</cite>
    </li>
    <li>
      <label>&nbsp;</label>
      <input name="" type="button" class="btn" value="返回" onclick="window.location.href='manufacturerList.html'"/>
    </li>
  </ul>
</div>
<script type="text/javascript">
    $(function () {
      let firmId=getParameter("id");
      axiosJson(
              'get',//提交方法
              '/purchase/firmPage',//提交地址
              null,
              {firmId: firmId}
      ).then((res) => {
        let audit = res.data.resultData.data[0];
        console.log(audit)
        $('#firmName').html(audit.firmName);
        $('#firmFounder').html(audit.firmFounder);
        $('#firmTel').html(audit.firmTel);
        $('#firmAddress').html(audit.firmAddress)
        $('#area').html(audit.city.province.pName+audit.city.cName);
        $('#firmContent').html(audit.firmContent);
        $('#status').html(audit.status);
        $('#uName').html(audit.creator.uName);
        $('#createTime').html(audit.createTime);
      })
    })
</script>
</body>
</html>
